﻿using CSRedis;
using Newtonsoft.Json;
using Practices.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace AbpDemo.TestProgram
{
    internal class Program
    {
        static async Task Main(string[] args)
        {
            var r = DeserializeFromXml<Envelope>(Path.GetFullPath("../../../XMLFile1.xml"));
            Console.ReadLine();
        }

        /// <summary>     
        /// 读取Xml文件内容反序列化为指定的对象  
        /// </summary>    
        /// <param name="filePath">Xml文件的位置（绝对路径）</param>  
        /// <returns></returns>    
        public static T DeserializeFromXml<T>(string filePath)
        {
            try
            {
                if (!File.Exists(filePath))
                    throw new ArgumentNullException(filePath + " not Exists");
                using (StreamReader reader = new StreamReader(filePath))
                {
                    XmlSerializer xs = new XmlSerializer(typeof(T));
                    T ret = (T)xs.Deserialize(reader);
                    return ret;
                }
            }
            catch (Exception ex)
            {
                return default(T);
            }
        }
    }

    public class EmailDto
    {
        /// <summary>
        /// 接收方邮箱账号
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 邮件标题
        /// </summary>
        public string EmailSubject { get; set; }
        /// <summary>
        /// 邮件内容
        /// </summary>
        public string EmailContent { get; set; }
    }
}

namespace Practices.Models
{
    /// <summary>
    /// Envelope
    /// </summary>
    [XmlType(TypeName = "envelope")]
    public class CityDataModel
    {
        /// <summary>
        /// header
        /// </summary>
        [XmlElement("header")]
        public Header header { get; set; }

        /// <summary>
        /// response
        /// </summary>
        [XmlElement("response")]
        public Response response { get; set; }

    }

    /// <summary>
    /// Header
    /// </summary>
    [XmlType(TypeName = "header")]
    public class Header
    {
        /// <summary>
        /// version
        /// </summary>
        [XmlElement("version")]
        public Version version { get; set; }

        /// <summary>
        /// timestamp
        /// </summary>
        [XmlElement("timestamp")]
        public string timestamp { get; set; }
    }

    /// <summary>
    /// Version
    /// </summary>
    public class Version
    {
        /// <summary>
        /// port
        /// </summary>
        [XmlAttribute("port")]
        public string port { get; set; }

        /// <summary>
        /// host
        /// </summary>
        [XmlAttribute("host")]
        public string host { get; set; }

        /// <summary>
        /// value：XmlTextAttribute指示该属性作为XML文本处理
        /// </summary>
        [XmlTextAttribute()]
        public string value { get; set; }

    }

    /// <summary>
    /// Response
    /// </summary>
    [XmlType(TypeName = "response")]
    public class Response
    {
        /// <summary>
        /// type
        /// </summary>
        [XmlAttribute]
        public string type { get; set; }

        /// <summary>
        /// product
        /// </summary>
        [XmlAttribute]
        public string product { get; set; }

        /// <summary>
        /// cities
        /// </summary>
        [XmlArray("cities")]
        public List<City> cities { get; set; }

    }

    /// <summary>
    /// class: City
    /// </summary>
    [XmlType(TypeName = "city")]
    public class City
    {
        /// <summary>
        /// code
        /// </summary>
        [XmlElement("code")]
        public Code code { get; set; }

        /// <summary>
        /// city_tax
        /// </summary>
        [XmlElement("city_tax")]
        public City_tax city_tax { get; set; }

        /// <summary>
        /// names
        /// </summary>
        [XmlArray("names")]
        public List<Name> names { get; set; }
    }

    /// <summary>
    /// class: Code
    /// </summary>
    [XmlType(TypeName = "code")]
    public class Code
    {
        /// <summary>
        /// 
        /// </summary>
        [XmlAttribute("value")]
        public string value { get; set; }

    }


    /// <summary>
    /// class: City_tax
    /// </summary>
    [XmlType(TypeName = "city_tax")]
    public class City_tax
    {
        /// <summary>
        /// 
        /// </summary>
        [XmlAttribute("value")]
        public string value { get; set; }

    }

    /// <summary>
    /// class: Name
    /// </summary>
    [XmlType(TypeName = "name")]
    public class Name
    {
        /// <summary>
        /// 
        /// </summary>
        [XmlAttribute("language")]
        public string language { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [XmlAttribute("value")]
        public string value { get; set; }

    }
}

#region MyRegion


/*// 注意: 生成的代码可能至少需要 .NET Framework 4.5 或 .NET Core/Standard 2.0。
/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://schemas.xmlsoap.org/soap/envelope/", IsNullable = false)]
public partial class Envelope
{

    private EnvelopeBody bodyField;

    /// <remarks/>
    public EnvelopeBody Body
    {
        get
        {
            return this.bodyField;
        }
        set
        {
            this.bodyField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
public partial class EnvelopeBody
{

    private HelloWorldResponse helloWorldResponseField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://tempuri.org/")]
    public HelloWorldResponse HelloWorldResponse
    {
        get
        {
            return this.helloWorldResponseField;
        }
        set
        {
            this.helloWorldResponseField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://tempuri.org/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://tempuri.org/", IsNullable = false)]
public partial class HelloWorldResponse
{

    private string helloWorldResultField;

    /// <remarks/>
    public string HelloWorldResult
    {
        get
        {
            return this.helloWorldResultField;
        }
        set
        {
            this.helloWorldResultField = value;
        }
    }
}*/
#endregion

// 注意: 生成的代码可能至少需要 .NET Framework 4.5 或 .NET Core/Standard 2.0。
/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://schemas.xmlsoap.org/soap/envelope/", IsNullable = false)]
public partial class Envelope
{

    private object headerField;

    private EnvelopeBody bodyField;

    /// <remarks/>
    public object Header
    {
        get
        {
            return this.headerField;
        }
        set
        {
            this.headerField = value;
        }
    }

    /// <remarks/>
    public EnvelopeBody Body
    {
        get
        {
            return this.bodyField;
        }
        set
        {
            this.bodyField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
public partial class EnvelopeBody
{

    private Message messageField;

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Namespace = "")]
    public Message Message
    {
        get
        {
            return this.messageField;
        }
        set
        {
            this.messageField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
public partial class Message
{

    private MessageDataRow dataRowField;

    private string msgIDField;

    private string snField;

    private ulong requestTimeField;

    private string resourceIDField;

    /// <remarks/>
    public MessageDataRow DataRow
    {
        get
        {
            return this.dataRowField;
        }
        set
        {
            this.dataRowField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string MsgID
    {
        get
        {
            return this.msgIDField;
        }
        set
        {
            this.msgIDField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string SN
    {
        get
        {
            return this.snField;
        }
        set
        {
            this.snField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public ulong RequestTime
    {
        get
        {
            return this.requestTimeField;
        }
        set
        {
            this.requestTimeField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string ResourceID
    {
        get
        {
            return this.resourceIDField;
        }
        set
        {
            this.resourceIDField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRow
{

    private string countryField;

    private byte internalField;

    private string codeField;

    private ulong registerPhoneField;

    private uint registerCityIdField;

    private string orgTpyeNameField;

    private ulong recReviseTimeField;

    private byte orgTpyeIdField;

    private uint cityIdField;

    private string registerEmailField;

    private string countryIdField;

    private byte suppTaxDivField;

    private byte statesField;

    private string cityNameField;

    private string currencyNameField;

    private MessageDataRowInvoices invoicesField;

    private string legalBodyField;

    private uint serviceRangeDeadlineField;

    private string areaNameField;

    private byte identityField;

    private string upOrgNameField;

    private string currencyIdField;

    private string emailField;

    private ushort registerProvinceIdField;

    private string districtNameField;

    private MessageDataRowBanks banksField;

    private decimal registerFundField;

    private ulong legalBodyIdField;

    private ulong telephoneField;

    private string taxRegistrationField;

    private string businessLicenseNoField;

    private ushort provinceIdField;

    private uint mDMCodeField;

    private MessageDataRowCertification certificationField;

    private string registerAddressField;

    private uint areaIdField;

    private string organizationCodeField;

    private string nameField;

    private byte recReviseFlagField;

    private ushort guidField;

    private string provinceNameField;

    private string corpAddressField;

    private string registerNameField;

    private byte innerUnitStatusField;

    private string serviceRangeField;

    /// <remarks/>
    public string country
    {
        get
        {
            return this.countryField;
        }
        set
        {
            this.countryField = value;
        }
    }

    /// <remarks/>
    public byte @internal
    {
        get
        {
            return this.internalField;
        }
        set
        {
            this.internalField = value;
        }
    }

    /// <remarks/>
    public string code
    {
        get
        {
            return this.codeField;
        }
        set
        {
            this.codeField = value;
        }
    }

    /// <remarks/>
    public ulong registerPhone
    {
        get
        {
            return this.registerPhoneField;
        }
        set
        {
            this.registerPhoneField = value;
        }
    }

    /// <remarks/>
    public uint registerCityId
    {
        get
        {
            return this.registerCityIdField;
        }
        set
        {
            this.registerCityIdField = value;
        }
    }

    /// <remarks/>
    public string orgTpyeName
    {
        get
        {
            return this.orgTpyeNameField;
        }
        set
        {
            this.orgTpyeNameField = value;
        }
    }

    /// <remarks/>
    public ulong recReviseTime
    {
        get
        {
            return this.recReviseTimeField;
        }
        set
        {
            this.recReviseTimeField = value;
        }
    }

    /// <remarks/>
    public byte orgTpyeId
    {
        get
        {
            return this.orgTpyeIdField;
        }
        set
        {
            this.orgTpyeIdField = value;
        }
    }

    /// <remarks/>
    public uint cityId
    {
        get
        {
            return this.cityIdField;
        }
        set
        {
            this.cityIdField = value;
        }
    }

    /// <remarks/>
    public string registerEmail
    {
        get
        {
            return this.registerEmailField;
        }
        set
        {
            this.registerEmailField = value;
        }
    }

    /// <remarks/>
    public string countryId
    {
        get
        {
            return this.countryIdField;
        }
        set
        {
            this.countryIdField = value;
        }
    }

    /// <remarks/>
    public byte suppTaxDiv
    {
        get
        {
            return this.suppTaxDivField;
        }
        set
        {
            this.suppTaxDivField = value;
        }
    }

    /// <remarks/>
    public byte states
    {
        get
        {
            return this.statesField;
        }
        set
        {
            this.statesField = value;
        }
    }

    /// <remarks/>
    public string cityName
    {
        get
        {
            return this.cityNameField;
        }
        set
        {
            this.cityNameField = value;
        }
    }

    /// <remarks/>
    public string currencyName
    {
        get
        {
            return this.currencyNameField;
        }
        set
        {
            this.currencyNameField = value;
        }
    }

    /// <remarks/>
    public MessageDataRowInvoices invoices
    {
        get
        {
            return this.invoicesField;
        }
        set
        {
            this.invoicesField = value;
        }
    }

    /// <remarks/>
    public string legalBody
    {
        get
        {
            return this.legalBodyField;
        }
        set
        {
            this.legalBodyField = value;
        }
    }

    /// <remarks/>
    public uint serviceRangeDeadline
    {
        get
        {
            return this.serviceRangeDeadlineField;
        }
        set
        {
            this.serviceRangeDeadlineField = value;
        }
    }

    /// <remarks/>
    public string areaName
    {
        get
        {
            return this.areaNameField;
        }
        set
        {
            this.areaNameField = value;
        }
    }

    /// <remarks/>
    public byte identity
    {
        get
        {
            return this.identityField;
        }
        set
        {
            this.identityField = value;
        }
    }

    /// <remarks/>
    public string upOrgName
    {
        get
        {
            return this.upOrgNameField;
        }
        set
        {
            this.upOrgNameField = value;
        }
    }

    /// <remarks/>
    public string currencyId
    {
        get
        {
            return this.currencyIdField;
        }
        set
        {
            this.currencyIdField = value;
        }
    }

    /// <remarks/>
    public string email
    {
        get
        {
            return this.emailField;
        }
        set
        {
            this.emailField = value;
        }
    }

    /// <remarks/>
    public ushort registerProvinceId
    {
        get
        {
            return this.registerProvinceIdField;
        }
        set
        {
            this.registerProvinceIdField = value;
        }
    }

    /// <remarks/>
    public string districtName
    {
        get
        {
            return this.districtNameField;
        }
        set
        {
            this.districtNameField = value;
        }
    }

    /// <remarks/>
    public MessageDataRowBanks banks
    {
        get
        {
            return this.banksField;
        }
        set
        {
            this.banksField = value;
        }
    }

    /// <remarks/>
    public decimal registerFund
    {
        get
        {
            return this.registerFundField;
        }
        set
        {
            this.registerFundField = value;
        }
    }

    /// <remarks/>
    public ulong legalBodyId
    {
        get
        {
            return this.legalBodyIdField;
        }
        set
        {
            this.legalBodyIdField = value;
        }
    }

    /// <remarks/>
    public ulong telephone
    {
        get
        {
            return this.telephoneField;
        }
        set
        {
            this.telephoneField = value;
        }
    }

    /// <remarks/>
    public string taxRegistration
    {
        get
        {
            return this.taxRegistrationField;
        }
        set
        {
            this.taxRegistrationField = value;
        }
    }

    /// <remarks/>
    public string businessLicenseNo
    {
        get
        {
            return this.businessLicenseNoField;
        }
        set
        {
            this.businessLicenseNoField = value;
        }
    }

    /// <remarks/>
    public ushort provinceId
    {
        get
        {
            return this.provinceIdField;
        }
        set
        {
            this.provinceIdField = value;
        }
    }

    /// <remarks/>
    public uint mDMCode
    {
        get
        {
            return this.mDMCodeField;
        }
        set
        {
            this.mDMCodeField = value;
        }
    }

    /// <remarks/>
    public MessageDataRowCertification certification
    {
        get
        {
            return this.certificationField;
        }
        set
        {
            this.certificationField = value;
        }
    }

    /// <remarks/>
    public string registerAddress
    {
        get
        {
            return this.registerAddressField;
        }
        set
        {
            this.registerAddressField = value;
        }
    }

    /// <remarks/>
    public uint areaId
    {
        get
        {
            return this.areaIdField;
        }
        set
        {
            this.areaIdField = value;
        }
    }

    /// <remarks/>
    public string organizationCode
    {
        get
        {
            return this.organizationCodeField;
        }
        set
        {
            this.organizationCodeField = value;
        }
    }

    /// <remarks/>
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    public byte recReviseFlag
    {
        get
        {
            return this.recReviseFlagField;
        }
        set
        {
            this.recReviseFlagField = value;
        }
    }

    /// <remarks/>
    public ushort guid
    {
        get
        {
            return this.guidField;
        }
        set
        {
            this.guidField = value;
        }
    }

    /// <remarks/>
    public string provinceName
    {
        get
        {
            return this.provinceNameField;
        }
        set
        {
            this.provinceNameField = value;
        }
    }

    /// <remarks/>
    public string corpAddress
    {
        get
        {
            return this.corpAddressField;
        }
        set
        {
            this.corpAddressField = value;
        }
    }

    /// <remarks/>
    public string registerName
    {
        get
        {
            return this.registerNameField;
        }
        set
        {
            this.registerNameField = value;
        }
    }

    /// <remarks/>
    public byte innerUnitStatus
    {
        get
        {
            return this.innerUnitStatusField;
        }
        set
        {
            this.innerUnitStatusField = value;
        }
    }

    /// <remarks/>
    public string serviceRange
    {
        get
        {
            return this.serviceRangeField;
        }
        set
        {
            this.serviceRangeField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRowInvoices
{

    private MessageDataRowInvoicesData5Row data5RowField;

    /// <remarks/>
    public MessageDataRowInvoicesData5Row Data5Row
    {
        get
        {
            return this.data5RowField;
        }
        set
        {
            this.data5RowField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRowInvoicesData5Row
{

    private uint modifiedTimeField;

    private string custInvoiceNameField;

    private string codeField;

    private string custInvoiceBankField;

    private string custInvoiceBankAccountField;

    private string custInvoiceMobileField;

    private string nameField;

    private byte freezingStateField;

    private string custInvoiceAddrField;

    private string custInvoiceTaxField;

    private uint freezingTimeField;

    /// <remarks/>
    public uint modifiedTime
    {
        get
        {
            return this.modifiedTimeField;
        }
        set
        {
            this.modifiedTimeField = value;
        }
    }

    /// <remarks/>
    public string custInvoiceName
    {
        get
        {
            return this.custInvoiceNameField;
        }
        set
        {
            this.custInvoiceNameField = value;
        }
    }

    /// <remarks/>
    public string code
    {
        get
        {
            return this.codeField;
        }
        set
        {
            this.codeField = value;
        }
    }

    /// <remarks/>
    public string custInvoiceBank
    {
        get
        {
            return this.custInvoiceBankField;
        }
        set
        {
            this.custInvoiceBankField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
    public string custInvoiceBankAccount
    {
        get
        {
            return this.custInvoiceBankAccountField;
        }
        set
        {
            this.custInvoiceBankAccountField = value;
        }
    }

    /// <remarks/>
    public string custInvoiceMobile
    {
        get
        {
            return this.custInvoiceMobileField;
        }
        set
        {
            this.custInvoiceMobileField = value;
        }
    }

    /// <remarks/>
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    public byte freezingState
    {
        get
        {
            return this.freezingStateField;
        }
        set
        {
            this.freezingStateField = value;
        }
    }

    /// <remarks/>
    public string custInvoiceAddr
    {
        get
        {
            return this.custInvoiceAddrField;
        }
        set
        {
            this.custInvoiceAddrField = value;
        }
    }

    /// <remarks/>
    public string custInvoiceTax
    {
        get
        {
            return this.custInvoiceTaxField;
        }
        set
        {
            this.custInvoiceTaxField = value;
        }
    }

    /// <remarks/>
    public uint freezingTime
    {
        get
        {
            return this.freezingTimeField;
        }
        set
        {
            this.freezingTimeField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRowBanks
{

    private MessageDataRowBanksData1Row data1RowField;

    /// <remarks/>
    public MessageDataRowBanksData1Row Data1Row
    {
        get
        {
            return this.data1RowField;
        }
        set
        {
            this.data1RowField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRowBanksData1Row
{

    private ulong bankAccountLinkField;

    private string bankAccountField;

    private string codeField;

    private string nameField;

    private byte freezingStateField;

    private string bankNameField;

    private ulong freezingTimeField;

    /// <remarks/>
    public ulong bankAccountLink
    {
        get
        {
            return this.bankAccountLinkField;
        }
        set
        {
            this.bankAccountLinkField = value;
        }
    }

    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
    public string bankAccount
    {
        get
        {
            return this.bankAccountField;
        }
        set
        {
            this.bankAccountField = value;
        }
    }

    /// <remarks/>
    public string code
    {
        get
        {
            return this.codeField;
        }
        set
        {
            this.codeField = value;
        }
    }

    /// <remarks/>
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    public byte freezingState
    {
        get
        {
            return this.freezingStateField;
        }
        set
        {
            this.freezingStateField = value;
        }
    }

    /// <remarks/>
    public string bankName
    {
        get
        {
            return this.bankNameField;
        }
        set
        {
            this.bankNameField = value;
        }
    }

    /// <remarks/>
    public ulong freezingTime
    {
        get
        {
            return this.freezingTimeField;
        }
        set
        {
            this.freezingTimeField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRowCertification
{

    private MessageDataRowCertificationData2Row data2RowField;

    /// <remarks/>
    public MessageDataRowCertificationData2Row Data2Row
    {
        get
        {
            return this.data2RowField;
        }
        set
        {
            this.data2RowField = value;
        }
    }
}

/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class MessageDataRowCertificationData2Row
{

    private string certPersonNameField;

    private uint certOrgCodeField;

    private string codeField;

    private string nameField;

    private string certOrgNameField;

    private string certDeptNameField;

    private byte stateField;

    private ulong certTimeField;

    private uint certDeptCodeField;

    private byte certResultStateField;

    /// <remarks/>
    public string certPersonName
    {
        get
        {
            return this.certPersonNameField;
        }
        set
        {
            this.certPersonNameField = value;
        }
    }

    /// <remarks/>
    public uint certOrgCode
    {
        get
        {
            return this.certOrgCodeField;
        }
        set
        {
            this.certOrgCodeField = value;
        }
    }

    /// <remarks/>
    public string code
    {
        get
        {
            return this.codeField;
        }
        set
        {
            this.codeField = value;
        }
    }

    /// <remarks/>
    public string name
    {
        get
        {
            return this.nameField;
        }
        set
        {
            this.nameField = value;
        }
    }

    /// <remarks/>
    public string certOrgName
    {
        get
        {
            return this.certOrgNameField;
        }
        set
        {
            this.certOrgNameField = value;
        }
    }

    /// <remarks/>
    public string certDeptName
    {
        get
        {
            return this.certDeptNameField;
        }
        set
        {
            this.certDeptNameField = value;
        }
    }

    /// <remarks/>
    public byte state
    {
        get
        {
            return this.stateField;
        }
        set
        {
            this.stateField = value;
        }
    }

    /// <remarks/>
    public ulong certTime
    {
        get
        {
            return this.certTimeField;
        }
        set
        {
            this.certTimeField = value;
        }
    }

    /// <remarks/>
    public uint certDeptCode
    {
        get
        {
            return this.certDeptCodeField;
        }
        set
        {
            this.certDeptCodeField = value;
        }
    }

    /// <remarks/>
    public byte certResultState
    {
        get
        {
            return this.certResultStateField;
        }
        set
        {
            this.certResultStateField = value;
        }
    }
}



